package com.springboot.dense.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_fog_level")
public class FogLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 雾天id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 监测点id
     */
    private Integer mid;

    /**
     * 雾值
     */
    private Float value;

    /**
     * 图片地址
     */
    private String url;

    /**
     * 雾等级(0：无雾，1：轻雾，2：浓雾)
     */
    private Integer level;

    /**
     * 时间 ( Date 类型必须转为 String 类型才可正常显示)
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date date;


}
